package cn.netbox.spring.service.impl;

import cn.netbox.spring.dao.MyDao;
import cn.netbox.spring.dao.impl.MyDaoImpl;
import cn.netbox.spring.dao.impl.ZLQDaoImpl;
import cn.netbox.spring.pojo.Student;
import cn.netbox.spring.pojo.ZLQStudent;
import cn.netbox.spring.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service("ZLQServiceImpl")
public class ZLQServiceImpl implements MyService {
    @Autowired
    @Qualifier("zlqDaoImpl")
    ZLQDaoImpl zlqDao;

    @Override
    public void methodA() {
        System.out.println("methodA");
    }

    @Override
    public void createStudent(Student student) {
        zlqDao.insertStudent(student);
    }
}
